package com.xdf.xzymanagementsystem.service;

import com.xdf.xzymanagementsystem.entity.StatusUser;

public interface StatusUserService {
    int deleteByPrimaryKey(Integer iid);

    int insert(StatusUser record);

    int insertSelective(StatusUser record);

    StatusUser selectByPrimaryKey(Integer iid);

    int updateByPrimaryKeySelective(StatusUser record);

    int updateByPrimaryKey(StatusUser record);

    StatusUser selectByUserid(String userId);

    // 前端登录请求发送来的参数是：
    // SysUser(id=null, loginName=8888, loginPassword=7777, userName=null, userSex=null, remarks=null, userAddress=null, userPhone=123456, userState=null, createTime=null, projectId=null)
    // 本方法根据用户 loginName 即登录的工号写入本表 online 状态
    // 要求必须有两个参数：loginName - 工号，userState - 0或者1表示上线下线
    int updateOnlineStatus(String userId,Boolean online);
    int updateOnlineStatus(Integer userPK,Boolean online);
}
